#include<stdio.h>
#include<string.h>

int main(int argc,char *argv[])
{   

    if(argc!=2)
    {
        printf("argv[0] -[a|b|c|d]\n");
        return 0;
    }
    
    if(strcmp(argv[1],"--help")==0)
    {
        printf("argv[0] -[a|b|c|d]\n");
    }

    else if(strcmp(argv[1],"-a")==0)
    {
        printf("命令一\n");
    }

    else if(strcmp(argv[1],"-b")==0)
    {
        printf("命令二\n");
    }

    else if(strcmp(argv[1],"-c")==0)
    {
        printf("命令三\n");
    }

    else if(strcmp(argv[1],"-d")==0)
    {
        printf("命令四\n");
    }

    else
    {
        printf("default\n");
    }



    //int i=0;
    //for(;i<argc;i++)
    //{
    //    printf("argv[%d]->%s\n",i,argv[i]);
    //}
    return 0;
}
